package com.example.demo.service;

import com.example.demo.mapper.RepliesMapper;
import com.example.demo.pojo.Replies;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

@Service
@Transactional
public class RepliesServiceImpl implements RepliesService{
    @Autowired
    RepliesMapper repliesMapper;

    @Override
    public int addReplies(Replies replies) {
        return repliesMapper.insertReplies(replies);
    }


    @Override
    public List<Replies> getRepliesByInfoId(Integer infoid) {
        return repliesMapper.selectRepliesByInfoId(infoid);
    }
}
